﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work1
{
    class Plane : Vehicle, IFlyable
    {
        public string name { get; set; }
        public int zaike { get; set; }

        public Plane()
        {
        }

        public Plane(string name,int zaike)
        {
            this.name = name;
            this.zaike = zaike;
        }

        public void TakeOff()
        {
            Console.WriteLine("{0}在TakeOff", this.name);
        }

        public void Fly()
        {
            Console.WriteLine("{0}在Fly", this.name);
        }

        public void Land()
        {
            Console.WriteLine("{0}在Land", this.name);
        }

        public void CarryPassange() 
        {
            Console.WriteLine("{0},载客人数为{1}",this.name,this.zaike);
        }
    }
}
